Add Method

Task Parallel System.Threading

Adds an object to the ConcurrentBag<(Of <(T>)>).

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Sub Add ( _
	item As T _
)
C#
public void Add(
	T item
)

Parameters

item
Type: T
The object to be added to the ConcurrentBag<(Of <(T>)>). The value can be a null reference (Nothing in Visual Basic) for reference types.

See Also